package com.example.common.entity;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

@Data
@Entity
@Table(name = "sys_keys")
public class Keys implements Serializable {

	private static final long serialVersionUID = -7403604953685440723L;
	@Id
	@Column(name = "id_bigint", columnDefinition = "bigint(20)")
	private Long id;
	@Column(name = "name_nvarchar", columnDefinition = "varchar(255)")
	private String name;
	@Column(name = "sort_int", columnDefinition = "int(11)")
	private Integer sort;
	@Column(name = "types_tinyint", columnDefinition = "tinyint(1) comment '1=禁忌症,2=用药方式,3=服药时间,4=用药频率,5=疾病分类,6=行动不便标志,7=病情稳定需长期服药标志'")
	private Integer types;
	@Column(name = "code_nvarchar", columnDefinition = "varchar(255)")
	private String code;
}
